﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SnakeGame
{
    class Point : IEquatable<Point>
    {
        int x, y;

        public Point() { }

        public Point(int x, int y)
        {
            this.x = x;
            this.y = y;
        }
        public int X
        {
            set { x = value; }
            get { return x; }
        }
        public int Y
        {
            set { y = value; }
            get { return y; }
        }

        public bool Equals(Point p)
        {
            if (this.X == p.X && this.Y == p.Y)
            {
                return true;
            }
            return false;
        }
    }
}
